home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15416 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Jobs running under Unix.
  5. Date: Thu, 18 Apr 96 21:40:16 GMT
  6. Organization: none
  7. Message-ID: <829863616snz@genesis.demon.co.uk>
  8. References: <829283553snz@tarik.demon.co.uk> <danpop.829743180@news.cern.ch>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <danpop.829743180@news.cern.ch> danpop@mail.cern.ch "Dan Pop" writes:
  15.  
  16. ...
  17.  
  18. >The method is far from perfect, but can be improved.  For example,
  19. >using a lock directory instead of a lock file will eliminate a possible
  20. >race condition under Unix.
  21.  
  22. If you're going beyond standard C by manipulating directories you might as
  23. well have used open() with O_EXCL in the first place. This really is a
  24. question for comp.unix.programmer - there is no satisfactory answer in
  25. standard C.
  26.  
  27. -- 
  28. -----------------------------------------
  29. Lawrence Kirby | fred@genesis.demon.co.uk
  30. Wilts, England | 70734.126@compuserve.com
  31. -----------------------------------------
  32.